import React, {Component} from "react";

class NumberList extends Component {
  render () {
    const liList = this.props.numbers.map((number) => {
      return <li key={number}>{number}</li>
    });

    return (
      <ul>{liList}</ul>
    )
  }
}

export default NumberList;